/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.great.multimidia;

import br.great.beans.Precision;
import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JSlider;
import javax.swing.UIManager;
import org.apache.sanselan.ImageReadException;
import org.apache.sanselan.ImageWriteException;

/**
 * 
 * @author Drazzco
 */
public class InterfaceTeste extends javax.swing.JFrame {

	/**
	 * Creates new form Interface2
	 */
	public InterfaceTeste() {
		newInitComponents();
	}

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed"
	// desc="Generated Code">//GEN-BEGIN:initComponents
	private void initComponents() {
		java.awt.GridBagConstraints gridBagConstraints;

		jPanel3 = new javax.swing.JPanel();
		jPanel1 = new javax.swing.JPanel();
		UIManager.put("TabbedPane.contentBorderInsets", new Insets(0, 0, 0, 0));
		UIManager.put("TabbedPane.selected", new Color(65, 65, 65));
		jTabbedPane1 = new javax.swing.JTabbedPane();
		jPanel2 = new javax.swing.JPanel();
		jLabel4 = new javax.swing.JLabel();
		jLabel1 = new javax.swing.JLabel();
		jLabel71 = new javax.swing.JLabel();
		jScrollPane1 = new javax.swing.JScrollPane();
		jPanel6 = new javax.swing.JPanel();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jLabel7 = new javax.swing.JLabel();
		jLabel8 = new javax.swing.JLabel();
		jLabel9 = new javax.swing.JLabel();
		jLabel10 = new javax.swing.JLabel();
		jLabel11 = new javax.swing.JLabel();
		jLabel12 = new javax.swing.JLabel();
		jLabel13 = new javax.swing.JLabel();
		jLabel14 = new javax.swing.JLabel();
		jLabel15 = new javax.swing.JLabel();
		jLabel16 = new javax.swing.JLabel();
		jLabel17 = new javax.swing.JLabel();
		jLabel18 = new javax.swing.JLabel();
		jLabel19 = new javax.swing.JLabel();
		jLabel20 = new javax.swing.JLabel();
		jPanel7 = new javax.swing.JPanel();
		jPanel8 = new javax.swing.JPanel();
		jLabel72 = new javax.swing.JLabel();
		jLabel73 = new javax.swing.JLabel();
		jLabel74 = new javax.swing.JLabel();
		jLabel75 = new javax.swing.JLabel();
		jSlider1 = new javax.swing.JSlider();
		jPanel9 = new javax.swing.JPanel();
		jPanel4 = new javax.swing.JPanel();
		jLabel2 = new javax.swing.JLabel();
		jPanel5 = new javax.swing.JPanel();
		jLabel3 = new javax.swing.JLabel();

		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		setTitle("ContextPicasa");
		setBackground(new java.awt.Color(79, 79, 79));
		setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
		setIconImages(null);
		setMaximumSize(new java.awt.Dimension(1000, 800));
		setMinimumSize(new java.awt.Dimension(1000, 600));
		setResizable(false);

		jPanel3.setBackground(new java.awt.Color(65, 65, 65));
		jPanel3.setLayout(new java.awt.BorderLayout());

		jPanel1.setBackground(new java.awt.Color(65, 65, 65));
		jPanel1.setFont(new java.awt.Font("Palatino Linotype", 0, 11)); // NOI18N
		jPanel1.setPreferredSize(new java.awt.Dimension(143, 266));
		jPanel1.setLayout(new java.awt.BorderLayout());

		jTabbedPane1.setBackground(new java.awt.Color(51, 51, 51));
		jTabbedPane1.setForeground(new java.awt.Color(255, 255, 255));
		jTabbedPane1.setFont(new java.awt.Font("Ebrima", 0, 11)); // NOI18N
		jTabbedPane1.setPreferredSize(new java.awt.Dimension(143, 266));

		jPanel2.setBackground(new java.awt.Color(65, 65, 65));
		jPanel2.setLayout(new java.awt.BorderLayout());
		jPanel2.add(jLabel4, java.awt.BorderLayout.CENTER);

		jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/ButtonPhotoLeft.png"))); // NOI18N
		jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel1MouseClicked(evt);
			}
		});
		jPanel2.add(jLabel1, java.awt.BorderLayout.WEST);

		jLabel71.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/ButtonPhotoRight.png"))); // NOI18N
		jLabel71.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel71MouseClicked(evt);
			}
		});
		jPanel2.add(jLabel71, java.awt.BorderLayout.EAST);

		jTabbedPane1.addTab("Foto Selecionada", jPanel2);

		jPanel6.setBackground(new java.awt.Color(65, 65, 65));
		jPanel6.setLayout(new java.awt.GridBagLayout());
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel5, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 5;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel6, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 10;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel7, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 15;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel8, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 4;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel9, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 5;
		gridBagConstraints.gridy = 4;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel10, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 10;
		gridBagConstraints.gridy = 4;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel11, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 15;
		gridBagConstraints.gridy = 4;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel12, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 8;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel13, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 5;
		gridBagConstraints.gridy = 8;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel14, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 10;
		gridBagConstraints.gridy = 8;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel15, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 15;
		gridBagConstraints.gridy = 8;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel16, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 12;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel17, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 5;
		gridBagConstraints.gridy = 12;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel18, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 10;
		gridBagConstraints.gridy = 12;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel19, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 15;
		gridBagConstraints.gridy = 12;
		gridBagConstraints.gridwidth = 5;
		gridBagConstraints.gridheight = 4;
		gridBagConstraints.insets = new java.awt.Insets(15, 17, 15, 17);
		jPanel6.add(jLabel20, gridBagConstraints);

		jScrollPane1.setViewportView(jPanel6);

		jTabbedPane1.addTab("Todas as Fotos", jScrollPane1);

		jPanel1.add(jTabbedPane1, java.awt.BorderLayout.CENTER);

		jPanel7.setBackground(new java.awt.Color(65, 65, 65));
		jPanel7.setLayout(new java.awt.GridBagLayout());

		jPanel8.setBackground(new java.awt.Color(29, 29, 29));
		jPanel8.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(
				29, 29, 29), 4, true));
		jPanel8.setMaximumSize(new java.awt.Dimension(400, 100));
		jPanel8.setMinimumSize(new java.awt.Dimension(400, 100));
		jPanel8.setPreferredSize(new java.awt.Dimension(400, 100));
		jPanel8.setLayout(new java.awt.GridBagLayout());
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);
		jPanel8.add(jLabel72, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3);
		jPanel8.add(jLabel73, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3);
		jPanel8.add(jLabel74, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3);
		jPanel8.add(jLabel75, gridBagConstraints);

		jSlider1.setMajorTickSpacing(1);
		jSlider1.setSnapToTicks(true);
		jSlider1.setValue(0);
		jSlider1.addChangeListener(new javax.swing.event.ChangeListener() {
			public void stateChanged(javax.swing.event.ChangeEvent evt) {
				jSlider1StateChanged(evt);
			}
		});
		// jSlider1.setUI(new SliderKnob(jSlider1));
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 1;
		gridBagConstraints.gridwidth = 4;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jPanel8.add(jSlider1, gridBagConstraints);

		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.insets = new java.awt.Insets(15, 0, 25, 0);
		jPanel7.add(jPanel8, gridBagConstraints);

		jPanel1.add(jPanel7, java.awt.BorderLayout.SOUTH);

		jPanel9.setBackground(new java.awt.Color(65, 65, 65));
		jPanel9.setBorder(javax.swing.BorderFactory.createLineBorder(
				new java.awt.Color(65, 65, 65), 3));
		jPanel1.add(jPanel9, java.awt.BorderLayout.EAST);

		jPanel3.add(jPanel1, java.awt.BorderLayout.CENTER);

		jPanel4.setAlignmentX(0.0F);
		jPanel4.setAlignmentY(0.0F);
		jPanel4.setLayout(new java.awt.BorderLayout());

		jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/topo.png"))); // NOI18N
		jPanel4.add(jLabel2, java.awt.BorderLayout.NORTH);

		jPanel3.add(jPanel4, java.awt.BorderLayout.NORTH);

		jPanel5.setLayout(new java.awt.BorderLayout());

		jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/Fundotags.png"))); // NOI18N
		jLabel3.setLayout(new java.awt.GridBagLayout());
		jPanel5.add(jLabel3, java.awt.BorderLayout.EAST);

		jPanel3.add(jPanel5, java.awt.BorderLayout.EAST);

		getContentPane().add(jPanel3, java.awt.BorderLayout.WEST);

		pack();
	}// </editor-fold>//GEN-END:initComponents

	private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jLabel1MouseClicked
		before = true;
		if (next == true) {
			if (counter == 0) {
				int n = icon25.size() - 1;
				beforeImage(n);
				next = false;
			} else {
				beforeImage(counter - 1);
				next = false;
			}
		} else {
			beforeImage(counter);
		}
	}// GEN-LAST:event_jLabel1MouseClicked

	private void jLabel71MouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jLabel71MouseClicked
		next = true;
		if (before == true) {
			if (counter == icon25.size() - 1) {
				int n = 0;
				nextImage(n);
				before = false;
			} else {
				nextImage(counter + 1);
				before = false;
			}
		} else {
			nextImage(counter);
		}
	}// GEN-LAST:event_jLabel71MouseClicked

	private void jSlider1StateChanged(javax.swing.event.ChangeEvent evt) {// GEN-FIRST:event_jSlider1StateChanged
		JSlider source = (JSlider) evt.getSource();
		if (iconSlider.size() > 1) {
			if (source.getValueIsAdjusting()) {
				if ((int) source.getValue() == iconSlider.size()) {
					sliderValue = 0;
				} else {
					sliderValue = (int) source.getValue();
				}
				Principal.value = sliderValue;
				Principal.setarFotosSlider(this, iconSlider, sliderValue);
			}
		}
	}// GEN-LAST:event_jSlider1StateChanged

	public void nextImage(int n) {
		if (vality.get(n) == true) {
			if (counter == icon25.size() - 1) {
				counter = 0;
			} else {
				counter++;
			}
			InterfaceTeste it3 = new InterfaceTeste();
			it3.setIcon25(icon25);
			it3.setIcon75(icon75);
			it3.setIconSlider(iconSlider);
			it3.setValidateHigh(validateHigh);
			it3.setValidateMedium(validateMedium);
			it3.setVality(vality);
			it3.setCounter(counter);
			it3.setIconjLabel4(icon75.get(counter));
			it3.setBefore(before);
			it3.setNext(next);
			it3.setSliderValue(sliderValue);
			Principal.setarFotos(it3, icon25);
			Principal.setarFotosSlider(it3, iconSlider, sliderValue);

			Principal.wordsHigh = new ArrayList<ArrayList<String>>();
			Principal.wordsMedium = new ArrayList<ArrayList<String>>();

			Principal.ordenar(highPrecision, mediumPrecision, counter);
			Principal.setarTags(it3, highPrecision, mediumPrecision);
			Principal.setarWords(highPrecision, mediumPrecision);

			highPrecision = new ArrayList<Precision>();
			mediumPrecision = new ArrayList<Precision>();

			this.setVisible(false);
			it3.setVisible(true);
		} else {
			boolean checkHigh = false;
			boolean checkMedium = false;
			if (highReady == true) {
				for (int i = 0; i < validateHigh.size(); i++) {
					if (validateHigh.get(i) == true) {
						checkHigh = true;
					}
				}
			}
			if (mediumReady == true) {
				for (int i = 0; i < validateMedium.size(); i++) {
					if (validateMedium.get(i) == true) {
						checkMedium = true;
					}
				}
			}
			if (checkMedium == false && checkHigh == false) {
				if (counter == icon25.size() - 1) {
					counter = 0;
				} else {
					counter++;
				}
				InterfaceTeste it3 = new InterfaceTeste();
				it3.setIcon25(icon25);
				it3.setIcon75(icon75);
				it3.setIconSlider(iconSlider);
				it3.setValidateHigh(Principal.blHigh);
				it3.setValidateMedium(Principal.blMedium);
				it3.setVality(vality);
				it3.setCounter(counter);
				it3.setIconjLabel4(icon75.get(counter));
				it3.setBefore(before);
				it3.setNext(next);
				it3.setSliderValue(sliderValue);
				Principal.setarFotos(it3, icon25);
				Principal.setarFotosSlider(it3, iconSlider, sliderValue);

				Principal.wordsHigh = new ArrayList<ArrayList<String>>();
				Principal.wordsMedium = new ArrayList<ArrayList<String>>();

				Principal.ordenar(highPrecision, mediumPrecision, counter);
				Principal.setarTags(it3, highPrecision, mediumPrecision);
				Principal.setarWords(highPrecision, mediumPrecision);

				highPrecision = new ArrayList<Precision>();
				mediumPrecision = new ArrayList<Precision>();

				this.setVisible(false);
				it3.setVisible(true);
			} else if (checkHigh == true || checkMedium == true) {
				if (checkHigh == true) {
					for (int i = 0; i < validateHigh.size(); i++) {
						if (validateHigh.get(i) == true) {
							try {
								wordsIPTC
										.add(Principal.wordsHigh.get(0).get(i));
							} catch (IndexOutOfBoundsException ex) {

							}
							validateHigh.set(i, false);
						}
					}
				}
				if (checkMedium == true) {
					for (int i = 0; i < validateMedium.size(); i++) {
						if (validateMedium.get(i) == true) {
							try {
								wordsIPTC.add(Principal.wordsMedium.get(0).get(
										i));
							} catch (IndexOutOfBoundsException ex) {

							}
							validateMedium.set(i, false);
						}
					}
				}

				try {
					Principal.photoIPTC.get(counter).addIPTCKeyword(wordsIPTC);
				} catch (ImageReadException ex) {
					Logger.getLogger(InterfaceTeste.class.getName()).log(
							Level.SEVERE, null, ex);
				} catch (IOException ex) {
					Logger.getLogger(InterfaceTeste.class.getName()).log(
							Level.SEVERE, null, ex);
				} catch (ImageWriteException ex) {
					Logger.getLogger(InterfaceTeste.class.getName()).log(
							Level.SEVERE, null, ex);
				}

				wordsIPTC = new ArrayList<String>();
				vality.set(counter, true);
				try {
					Principal.fotoValidada(icon25, counter);
				} catch (IOException ex) {
					Logger.getLogger(InterfaceTeste.class.getName()).log(
							Level.SEVERE, null, ex);
				}
				if (counter == icon25.size() - 1) {
					counter = 0;
				} else {
					counter++;
				}
				InterfaceTeste it3 = new InterfaceTeste();
				it3.setIcon25(icon25);
				it3.setIcon75(icon75);
				it3.setIconSlider(iconSlider);
				it3.setValidateHigh(Principal.blHigh);
				it3.setValidateMedium(Principal.blMedium);
				it3.setVality(vality);
				it3.setCounter(counter);
				it3.setIconjLabel4(icon75.get(counter));
				it3.setBefore(before);
				it3.setNext(next);
				it3.setSliderValue(sliderValue);
				Principal.setarFotos(it3, icon25);
				Principal.setarFotosSlider(it3, iconSlider, sliderValue);

				Principal.wordsHigh = new ArrayList<ArrayList<String>>();
				Principal.wordsMedium = new ArrayList<ArrayList<String>>();

				Principal.ordenar(highPrecision, mediumPrecision, counter);
				Principal.setarTags(it3, highPrecision, mediumPrecision);
				Principal.setarWords(highPrecision, mediumPrecision);

				highPrecision = new ArrayList<Precision>();
				mediumPrecision = new ArrayList<Precision>();

				this.setVisible(false);
				it3.setVisible(true);
			}
		}
	}

	public void beforeImage(int n) {
		if (vality.get(n) == true) {
			if (counter == 0) {
				counter = icon25.size() - 1;
			} else {
				counter--;
			}
			InterfaceTeste it3 = new InterfaceTeste();
			it3.setIcon25(icon25);
			it3.setIcon75(icon75);
			it3.setIconSlider(iconSlider);
			it3.setValidateHigh(validateHigh);
			it3.setValidateMedium(validateMedium);
			it3.setVality(vality);
			it3.setCounter(counter);
			it3.setIconjLabel4(icon75.get(counter));
			it3.setBefore(before);
			it3.setNext(next);
			it3.setSliderValue(sliderValue);
			Principal.setarFotos(it3, icon25);
			Principal.setarFotosSlider(it3, iconSlider, sliderValue);

			Principal.wordsHigh = new ArrayList<ArrayList<String>>();
			Principal.wordsMedium = new ArrayList<ArrayList<String>>();

			Principal.ordenar(highPrecision, mediumPrecision, counter);
			Principal.setarTags(it3, highPrecision, mediumPrecision);
			Principal.setarWords(highPrecision, mediumPrecision);

			highPrecision = new ArrayList<Precision>();
			mediumPrecision = new ArrayList<Precision>();

			this.setVisible(false);
			it3.setVisible(true);
		} else {
			boolean checkHigh = false;
			boolean checkMedium = false;
			if (highReady == true) {
				for (int i = 0; i < validateHigh.size(); i++) {
					if (validateHigh.get(i) == true) {
						checkHigh = true;
					}
				}
			}
			if (mediumReady == true) {
				for (int i = 0; i < validateMedium.size(); i++) {
					if (validateMedium.get(i) == true) {
						checkMedium = true;
					}
				}
			}
			if (checkHigh == false && checkMedium == false) {
				if (counter == 0) {
					counter = icon25.size() - 1;
				} else {
					counter--;
				}
				InterfaceTeste it3 = new InterfaceTeste();
				it3.setIcon25(icon25);
				it3.setIcon75(icon75);
				it3.setIconSlider(iconSlider);
				it3.setValidateHigh(Principal.blHigh);
				it3.setValidateMedium(Principal.blMedium);
				it3.setVality(vality);
				it3.setCounter(counter);
				it3.setIconjLabel4(icon75.get(counter));
				it3.setBefore(before);
				it3.setNext(next);
				it3.setSliderValue(sliderValue);
				Principal.setarFotos(it3, icon25);
				Principal.setarFotosSlider(it3, iconSlider, sliderValue);

				Principal.wordsHigh = new ArrayList<ArrayList<String>>();
				Principal.wordsMedium = new ArrayList<ArrayList<String>>();

				Principal.ordenar(highPrecision, mediumPrecision, counter);
				Principal.setarTags(it3, highPrecision, mediumPrecision);
				Principal.setarWords(highPrecision, mediumPrecision);

				highPrecision = new ArrayList<Precision>();
				mediumPrecision = new ArrayList<Precision>();

				this.setVisible(false);
				it3.setVisible(true);
			} else if (checkHigh == true || checkMedium == true) {
				for (int i = 0; i < validateHigh.size(); i++) {
					if (validateHigh.get(i) == true) {
						try {
							wordsIPTC.add(Principal.wordsHigh.get(0).get(i));
						} catch (IndexOutOfBoundsException ex) {

						}
						validateHigh.set(i, false);
					}
				}
				for (int i = 0; i < validateMedium.size(); i++) {
					if (validateMedium.get(i) == true) {
						try {
							wordsIPTC.add(Principal.wordsMedium.get(0).get(i));
						} catch (IndexOutOfBoundsException ex) {

						}
						validateMedium.set(i, false);
					}
				}

				try {
					Principal.photoIPTC.get(counter).addIPTCKeyword(wordsIPTC);
				} catch (ImageReadException ex) {
					Logger.getLogger(InterfaceTeste.class.getName()).log(
							Level.SEVERE, null, ex);
				} catch (IOException ex) {
					Logger.getLogger(InterfaceTeste.class.getName()).log(
							Level.SEVERE, null, ex);
				} catch (ImageWriteException ex) {
					Logger.getLogger(InterfaceTeste.class.getName()).log(
							Level.SEVERE, null, ex);
				}

				wordsIPTC = new ArrayList<String>();
				vality.set(counter, true);
				try {
					Principal.fotoValidada(icon25, counter);
				} catch (IOException ex) {
					Logger.getLogger(InterfaceTeste.class.getName()).log(
							Level.SEVERE, null, ex);
				}
				if (counter == 0) {
					counter = icon25.size() - 1;
				} else {
					counter--;
				}
				InterfaceTeste it3 = new InterfaceTeste();
				it3.setIcon25(icon25);
				it3.setIcon75(icon75);
				it3.setIconSlider(iconSlider);
				it3.setValidateHigh(Principal.blHigh);
				it3.setValidateMedium(Principal.blMedium);
				it3.setVality(vality);
				it3.setCounter(counter);
				it3.setIconjLabel4(icon75.get(counter));
				it3.setBefore(before);
				it3.setNext(next);
				it3.setSliderValue(sliderValue);
				Principal.setarFotos(it3, icon25);
				Principal.setarFotosSlider(it3, iconSlider, sliderValue);

				Principal.wordsHigh = new ArrayList<ArrayList<String>>();
				Principal.wordsMedium = new ArrayList<ArrayList<String>>();

				Principal.ordenar(highPrecision, mediumPrecision, counter);
				Principal.setarTags(it3, highPrecision, mediumPrecision);
				Principal.setarWords(highPrecision, mediumPrecision);

				highPrecision = new ArrayList<Precision>();
				mediumPrecision = new ArrayList<Precision>();

				this.setVisible(false);
				it3.setVisible(true);
			}
		}
	}

	private void newInitComponents() {
		java.awt.GridBagConstraints gridBagConstraints;

		jLabel21 = new javax.swing.JLabel();
		jLabel22 = new javax.swing.JLabel();
		jLabel23 = new javax.swing.JLabel();
		jLabel24 = new javax.swing.JLabel();
		jLabel25 = new javax.swing.JLabel();
		jLabel26 = new javax.swing.JLabel();
		jLabel27 = new javax.swing.JLabel();
		jLabel28 = new javax.swing.JLabel();
		jLabel29 = new javax.swing.JLabel();
		jLabel30 = new javax.swing.JLabel();
		jLabel31 = new javax.swing.JLabel();
		jLabel32 = new javax.swing.JLabel();
		jLabel33 = new javax.swing.JLabel();
		jLabel34 = new javax.swing.JLabel();
		jLabel35 = new javax.swing.JLabel();
		jLabel36 = new javax.swing.JLabel();
		jLabel37 = new javax.swing.JLabel();
		jLabel38 = new javax.swing.JLabel();
		jLabel39 = new javax.swing.JLabel();
		jLabel40 = new javax.swing.JLabel();
		jLabel41 = new javax.swing.JLabel();
		jLabel42 = new javax.swing.JLabel();
		jLabel43 = new javax.swing.JLabel();
		jLabel44 = new javax.swing.JLabel();
		jLabel45 = new javax.swing.JLabel();
		jLabel46 = new javax.swing.JLabel();
		jLabel47 = new javax.swing.JLabel();
		jLabel48 = new javax.swing.JLabel();
		jLabel49 = new javax.swing.JLabel();
		jLabel50 = new javax.swing.JLabel();
		jLabel51 = new javax.swing.JLabel();
		jLabel52 = new javax.swing.JLabel();
		jLabel53 = new javax.swing.JLabel();
		jLabel54 = new javax.swing.JLabel();
		jLabel55 = new javax.swing.JLabel();
		jLabel56 = new javax.swing.JLabel();
		jLabel57 = new javax.swing.JLabel();
		jLabel58 = new javax.swing.JLabel();
		jLabel59 = new javax.swing.JLabel();
		jLabel60 = new javax.swing.JLabel();
		jLabel61 = new javax.swing.JLabel();
		jLabel62 = new javax.swing.JLabel();
		jLabel63 = new javax.swing.JLabel();
		jLabel64 = new javax.swing.JLabel();
		jLabel65 = new javax.swing.JLabel();
		jLabel66 = new javax.swing.JLabel();
		jLabel67 = new javax.swing.JLabel();
		jLabel68 = new javax.swing.JLabel();
		jLabel69 = new javax.swing.JLabel();
		jLabel70 = new javax.swing.JLabel();

		initComponents();

		jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		jLabel21.setText("Tags de Maior Precisão");
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.ipadx = 14;
		gridBagConstraints.insets = new java.awt.Insets(2, 4, 4, 2);
		jLabel3.add(jLabel21, gridBagConstraints);

		jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		jLabel22.setText("Tags de Média Precisão");
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 7;
		gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 2);
		jLabel3.add(jLabel22, gridBagConstraints);

		jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel23.setLayout(new java.awt.GridBagLayout());
		jLabel23.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel23MouseClicked(evt);
			}
		});
		jLabel47.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel23MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel23.add(jLabel47, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 1;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel23, gridBagConstraints);

		jLabel24.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel24.setLayout(new java.awt.GridBagLayout());
		jLabel24.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel24MouseClicked(evt);
			}
		});
		jLabel48.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel24MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel24.add(jLabel48, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 1;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel24, gridBagConstraints);

		jLabel25.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel25.setLayout(new java.awt.GridBagLayout());
		jLabel25.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel25MouseClicked(evt);
			}
		});
		jLabel49.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel25MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel25.add(jLabel49, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 2;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel25, gridBagConstraints);

		jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel26.setLayout(new java.awt.GridBagLayout());
		jLabel26.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel26MouseClicked(evt);
			}
		});
		jLabel50.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel26MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel26.add(jLabel50, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 2;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel26, gridBagConstraints);

		jLabel27.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel27.setLayout(new java.awt.GridBagLayout());
		jLabel27.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel27MouseClicked(evt);
			}
		});
		jLabel51.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel27MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel27.add(jLabel51, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 3;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel27, gridBagConstraints);

		jLabel28.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel28.setLayout(new java.awt.GridBagLayout());
		jLabel28.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel28MouseClicked(evt);
			}
		});
		jLabel52.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel28MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel28.add(jLabel52, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 3;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel28, gridBagConstraints);

		jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel29.setLayout(new java.awt.GridBagLayout());
		jLabel29.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel29MouseClicked(evt);
			}
		});
		jLabel53.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel29MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel29.add(jLabel53, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 4;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel29, gridBagConstraints);

		jLabel30.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel30.setLayout(new java.awt.GridBagLayout());
		jLabel30.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel30MouseClicked(evt);
			}
		});
		jLabel54.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel30MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel30.add(jLabel54, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 4;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel30, gridBagConstraints);

		jLabel31.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel31.setLayout(new java.awt.GridBagLayout());
		jLabel31.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel31MouseClicked(evt);
			}
		});
		jLabel55.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel31MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel31.add(jLabel55, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 5;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel31, gridBagConstraints);

		jLabel32.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel32.setLayout(new java.awt.GridBagLayout());
		jLabel32.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel32MouseClicked(evt);
			}
		});
		jLabel56.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel32MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel32.add(jLabel56, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 5;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel32, gridBagConstraints);

		jLabel33.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel33.setLayout(new java.awt.GridBagLayout());
		jLabel33.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel33MouseClicked(evt);
			}
		});
		jLabel57.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel33MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel33.add(jLabel57, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 6;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel33, gridBagConstraints);

		jLabel34.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoAtivo.png"))); // NOI18N
		jLabel34.setLayout(new java.awt.GridBagLayout());
		jLabel34.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel34MouseClicked(evt);
			}
		});
		jLabel58.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel34MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel34.add(jLabel58, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 6;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel34, gridBagConstraints);

		jLabel35.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel35.setLayout(new java.awt.GridBagLayout());
		jLabel35.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel35MouseClicked(evt);
			}
		});
		jLabel59.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel35MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel35.add(jLabel59, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 8;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel35, gridBagConstraints);

		jLabel36.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel36.setLayout(new java.awt.GridBagLayout());
		jLabel36.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel36MouseClicked(evt);
			}
		});
		jLabel60.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel36MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel36.add(jLabel60, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 8;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel36, gridBagConstraints);

		jLabel37.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel37.setLayout(new java.awt.GridBagLayout());
		jLabel37.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel37MouseClicked(evt);
			}
		});
		jLabel61.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel37MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel37.add(jLabel61, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 9;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel37, gridBagConstraints);

		jLabel38.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel38.setLayout(new java.awt.GridBagLayout());
		jLabel38.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel38MouseClicked(evt);
			}
		});
		jLabel62.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel38MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel38.add(jLabel62, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 9;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel38, gridBagConstraints);

		jLabel39.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel39.setLayout(new java.awt.GridBagLayout());
		jLabel39.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel39MouseClicked(evt);
			}
		});
		jLabel63.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel39MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel39.add(jLabel63, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 10;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel39, gridBagConstraints);

		jLabel40.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel40.setLayout(new java.awt.GridBagLayout());
		jLabel40.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel40MouseClicked(evt);
			}
		});
		jLabel64.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel40MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel40.add(jLabel64, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 10;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel40, gridBagConstraints);

		jLabel41.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel41.setLayout(new java.awt.GridBagLayout());
		jLabel41.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel41MouseClicked(evt);
			}
		});
		jLabel65.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel41MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel41.add(jLabel65, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 11;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel41, gridBagConstraints);

		jLabel42.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel42.setLayout(new java.awt.GridBagLayout());
		jLabel42.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel42MouseClicked(evt);
			}
		});
		jLabel66.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel42MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel42.add(jLabel66, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 11;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel42, gridBagConstraints);

		jLabel43.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel43.setLayout(new java.awt.GridBagLayout());
		jLabel43.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel43MouseClicked(evt);
			}
		});
		jLabel67.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel43MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel43.add(jLabel67, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 12;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel43, gridBagConstraints);

		jLabel44.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel44.setLayout(new java.awt.GridBagLayout());
		jLabel44.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel44MouseClicked(evt);
			}
		});
		jLabel68.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel44MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel44.add(jLabel68, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 12;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel44, gridBagConstraints);

		jLabel45.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel45.setLayout(new java.awt.GridBagLayout());
		jLabel45.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel45MouseClicked(evt);
			}
		});
		jLabel69.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel45MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel45.add(jLabel69, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 13;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 10, 1, 5);
		jLabel3.add(jLabel45, gridBagConstraints);

		jLabel46.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/br/great/multimidia/BotaoInativo.png"))); // NOI18N
		jLabel46.setLayout(new java.awt.GridBagLayout());
		jLabel46.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel46MouseClicked(evt);
			}
		});
		jLabel70.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				jLabel46MouseClicked(evt);
			}
		});
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		jLabel46.add(jLabel70, gridBagConstraints);
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 1;
		gridBagConstraints.gridy = 13;
		gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
		gridBagConstraints.insets = new java.awt.Insets(1, 5, 1, 10);
		jLabel3.add(jLabel46, gridBagConstraints);

		jPanel5.add(jLabel3, java.awt.BorderLayout.EAST);

		jPanel3.add(jPanel5, java.awt.BorderLayout.EAST);

		jSlider1.setMaximum(Principal.size);
		jSlider1.setValue(Principal.value);

		getContentPane().add(jPanel3, java.awt.BorderLayout.WEST);

		pack();
	}

	private void jLabel23MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(0) == false) {
			validateHigh.set(0, true);
			jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(0, false);
			jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel24MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(1) == false) {
			validateHigh.set(1, true);
			jLabel24.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(1, false);
			jLabel24.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel25MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(2) == false) {
			validateHigh.set(2, true);
			jLabel25.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(2, false);
			jLabel25.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel26MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(3) == false) {
			validateHigh.set(3, true);
			jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(3, false);
			jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel27MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(4) == false) {
			validateHigh.set(4, true);
			jLabel27.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(4, false);
			jLabel27.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel28MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(5) == false) {
			validateHigh.set(5, true);
			jLabel28.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(5, false);
			jLabel28.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel29MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(6) == false) {
			validateHigh.set(6, true);
			jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(6, false);
			jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel30MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(7) == false) {
			validateHigh.set(7, true);
			jLabel30.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(7, false);
			jLabel30.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel31MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(8) == false) {
			validateHigh.set(8, true);
			jLabel31.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(8, false);
			jLabel31.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel32MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(9) == false) {
			validateHigh.set(9, true);
			jLabel32.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(9, false);
			jLabel32.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel33MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(10) == false) {
			validateHigh.set(10, true);
			jLabel33.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(10, false);
			jLabel33.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel34MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateHigh.get(11) == false) {
			validateHigh.set(11, true);
			jLabel34.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateHigh.set(11, false);
			jLabel34.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel35MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(0) == false) {
			validateMedium.set(0, true);
			jLabel35.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(0, false);
			jLabel35.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel36MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(1) == false) {
			validateMedium.set(1, true);
			jLabel36.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(1, false);
			jLabel36.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel37MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(2) == false) {
			validateMedium.set(2, true);
			jLabel37.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(2, false);
			jLabel37.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel38MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(3) == false) {
			validateMedium.set(3, true);
			jLabel38.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(3, false);
			jLabel38.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel39MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(4) == false) {
			validateMedium.set(4, true);
			jLabel39.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(4, false);
			jLabel39.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel40MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(5) == false) {
			validateMedium.set(5, true);
			jLabel40.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(5, false);
			jLabel40.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel41MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(6) == false) {
			validateMedium.set(6, true);
			jLabel41.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(6, false);
			jLabel41.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel42MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(7) == false) {
			validateMedium.set(7, true);
			jLabel42.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(7, false);
			jLabel42.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel43MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(8) == false) {
			validateMedium.set(8, true);
			jLabel43.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(8, false);
			jLabel43.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel44MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(9) == false) {
			validateMedium.set(9, true);
			jLabel44.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(9, false);
			jLabel44.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel45MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(10) == false) {
			validateMedium.set(10, true);
			jLabel45.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(10, false);
			jLabel45.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	private void jLabel46MouseClicked(java.awt.event.MouseEvent evt) {
		if (validateMedium.get(11) == false) {
			validateMedium.set(11, true);
			jLabel46.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoAtivo.png")));
		} else {
			validateMedium.set(11, false);
			jLabel46.setIcon(new javax.swing.ImageIcon(getClass().getResource(
					"/br/great/multimidia/BotaoInativo.png")));
		}
	}

	// Variables declaration - do not modify//GEN-BEGIN:variables
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel10;
	private javax.swing.JLabel jLabel11;
	private javax.swing.JLabel jLabel12;
	private javax.swing.JLabel jLabel13;
	private javax.swing.JLabel jLabel14;
	private javax.swing.JLabel jLabel15;
	private javax.swing.JLabel jLabel16;
	private javax.swing.JLabel jLabel17;
	private javax.swing.JLabel jLabel18;
	private javax.swing.JLabel jLabel19;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JLabel jLabel20;
	private javax.swing.JLabel jLabel3;
	private javax.swing.JLabel jLabel4;
	private javax.swing.JLabel jLabel5;
	private javax.swing.JLabel jLabel6;
	private javax.swing.JLabel jLabel7;
	private javax.swing.JLabel jLabel71;
	private javax.swing.JLabel jLabel72;
	private javax.swing.JLabel jLabel73;
	private javax.swing.JLabel jLabel74;
	private javax.swing.JLabel jLabel75;
	private javax.swing.JLabel jLabel8;
	private javax.swing.JLabel jLabel9;
	private javax.swing.JPanel jPanel1;
	private javax.swing.JPanel jPanel2;
	private javax.swing.JPanel jPanel3;
	private javax.swing.JPanel jPanel4;
	private javax.swing.JPanel jPanel5;
	private javax.swing.JPanel jPanel6;
	private javax.swing.JPanel jPanel7;
	private javax.swing.JPanel jPanel8;
	private javax.swing.JPanel jPanel9;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JSlider jSlider1;
	private javax.swing.JTabbedPane jTabbedPane1;
	// End of variables declaration//GEN-END:variables
	private javax.swing.JLabel jLabel21;
	private javax.swing.JLabel jLabel22;
	private javax.swing.JLabel jLabel23;
	private javax.swing.JLabel jLabel24;
	private javax.swing.JLabel jLabel25;
	private javax.swing.JLabel jLabel26;
	private javax.swing.JLabel jLabel27;
	private javax.swing.JLabel jLabel28;
	private javax.swing.JLabel jLabel29;
	private javax.swing.JLabel jLabel30;
	private javax.swing.JLabel jLabel31;
	private javax.swing.JLabel jLabel32;
	private javax.swing.JLabel jLabel33;
	private javax.swing.JLabel jLabel34;
	private javax.swing.JLabel jLabel35;
	private javax.swing.JLabel jLabel36;
	private javax.swing.JLabel jLabel37;
	private javax.swing.JLabel jLabel38;
	private javax.swing.JLabel jLabel39;
	private javax.swing.JLabel jLabel40;
	private javax.swing.JLabel jLabel41;
	private javax.swing.JLabel jLabel42;
	private javax.swing.JLabel jLabel43;
	private javax.swing.JLabel jLabel44;
	private javax.swing.JLabel jLabel45;
	private javax.swing.JLabel jLabel46;
	private javax.swing.JLabel jLabel47;
	private javax.swing.JLabel jLabel48;
	private javax.swing.JLabel jLabel49;
	private javax.swing.JLabel jLabel50;
	private javax.swing.JLabel jLabel51;
	private javax.swing.JLabel jLabel52;
	private javax.swing.JLabel jLabel53;
	private javax.swing.JLabel jLabel54;
	private javax.swing.JLabel jLabel55;
	private javax.swing.JLabel jLabel56;
	private javax.swing.JLabel jLabel57;
	private javax.swing.JLabel jLabel58;
	private javax.swing.JLabel jLabel59;
	private javax.swing.JLabel jLabel60;
	private javax.swing.JLabel jLabel61;
	private javax.swing.JLabel jLabel62;
	private javax.swing.JLabel jLabel63;
	private javax.swing.JLabel jLabel64;
	private javax.swing.JLabel jLabel65;
	private javax.swing.JLabel jLabel66;
	private javax.swing.JLabel jLabel67;
	private javax.swing.JLabel jLabel68;
	private javax.swing.JLabel jLabel69;
	private javax.swing.JLabel jLabel70;

	private static ArrayList<ImageIcon> icon25 = new ArrayList<ImageIcon>();
	private static ArrayList<ImageIcon> iconSlider = new ArrayList<ImageIcon>();
	private static ArrayList<ImageIcon> icon75 = new ArrayList<ImageIcon>();
	private static ArrayList<String> wordsIPTC = new ArrayList<String>();
	private static ArrayList<Boolean> validateHigh = new ArrayList<Boolean>();
	private static ArrayList<Boolean> validateMedium = new ArrayList<Boolean>();
	private static ArrayList<Boolean> vality = new ArrayList<Boolean>();
	private static ArrayList<Precision> highPrecision = new ArrayList<Precision>();
	private static ArrayList<Precision> mediumPrecision = new ArrayList<Precision>();
	private int counter = 0;
	private int sliderValue = 0;
	private int maximum = 20;
	private boolean highReady = true;
	private boolean mediumReady = true;
	private boolean next = false;
	private boolean before = false;

	public void setSliderValue(int sliderValue) {
		this.sliderValue = sliderValue;
	}

	public void setHighReady() {
		this.highReady = false;
	}

	public void setMediumReady() {
		this.mediumReady = false;
	}

	public void setTextjLabel47(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel47.setText(end);
			jLabel47.setToolTipText(text);
		} else {
			jLabel47.setText(text);
		}
	}

	public void setTextjLabel48(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel48.setText(end);
			jLabel48.setToolTipText(text);
		} else {
			jLabel48.setText(text);
		}
	}

	public void setTextjLabel49(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel49.setText(end);
			jLabel49.setToolTipText(text);
		} else {
			jLabel49.setText(text);
		}
	}

	public void setTextjLabel50(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel50.setText(end);
			jLabel50.setToolTipText(text);
		} else {
			jLabel50.setText(text);
		}
	}

	public void setTextjLabel51(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel51.setText(end);
			jLabel51.setToolTipText(text);
		} else {
			jLabel51.setText(text);
		}
	}

	public void setTextjLabel52(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel52.setText(end);
			jLabel52.setToolTipText(text);
		} else {
			jLabel52.setText(text);
		}
	}

	public void setTextjLabel53(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel53.setText(end);
			jLabel53.setToolTipText(text);
		} else {
			jLabel53.setText(text);
		}
	}

	public void setTextjLabel54(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel54.setText(end);
			jLabel54.setToolTipText(text);
		} else {
			jLabel54.setText(text);
		}
	}

	public void setTextjLabel55(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel55.setText(end);
			jLabel55.setToolTipText(text);
		} else {
			jLabel55.setText(text);
		}
	}

	public void setTextjLabel56(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel56.setText(end);
			jLabel56.setToolTipText(text);
		} else {
			jLabel56.setText(text);
		}
	}

	public void setTextjLabel57(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel57.setText(end);
			jLabel57.setToolTipText(text);
		} else {
			jLabel57.setText(text);
		}
	}

	public void setTextjLabel58(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel58.setText(end);
			jLabel58.setToolTipText(text);
		} else {
			jLabel58.setText(text);
		}
	}

	public void setTextjLabel59(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel59.setText(end);
			jLabel59.setToolTipText(text);
		} else {
			jLabel59.setText(text);
		}
	}

	public void setTextjLabel60(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel60.setText(end);
			jLabel60.setToolTipText(text);
		} else {
			jLabel60.setText(text);
		}
	}

	public void setTextjLabel61(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel61.setText(end);
			jLabel61.setToolTipText(text);
		} else {
			jLabel61.setText(text);
		}
	}

	public void setTextjLabel62(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel62.setText(end);
			jLabel62.setToolTipText(text);
		} else {
			jLabel62.setText(text);
		}
	}

	public void setTextjLabel63(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel63.setText(end);
			jLabel63.setToolTipText(text);
		} else {
			jLabel63.setText(text);
		}
	}

	public void setTextjLabel64(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel64.setText(end);
			jLabel64.setToolTipText(text);
		} else {
			jLabel64.setText(text);
		}
	}

	public void setTextjLabel65(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel65.setText(end);
			jLabel65.setToolTipText(text);
		} else {
			jLabel65.setText(text);
		}
	}

	public void setTextjLabel66(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel66.setText(end);
			jLabel66.setToolTipText(text);
		} else {
			jLabel66.setText(text);
		}
	}

	public void setTextjLabel67(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel67.setText(end);
			jLabel67.setToolTipText(text);
		} else {
			jLabel67.setText(text);
		}
	}

	public void setTextjLabel68(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel68.setText(end);
			jLabel68.setToolTipText(text);
		} else {
			jLabel68.setText(text);
		}
	}

	public void setTextjLabel69(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel69.setText(end);
			jLabel69.setToolTipText(text);
		} else {
			jLabel69.setText(text);
		}
	}

	public void setTextjLabel70(String text) {
		String[] let = text.split("(?<=\\G.{1})");
		String end = "";
		if (let.length > maximum) {
			for (int i = 0; i < maximum; i++) {
				end += let[i];
			}
			end += "...";
			jLabel70.setText(end);
			jLabel70.setToolTipText(text);
		} else {
			jLabel70.setText(text);
		}
	}

	public void setBefore(boolean before) {
		this.before = before;
	}

	public void setNext(boolean next) {
		this.next = next;
	}

	public void setVality(ArrayList<Boolean> vality) {
		InterfaceTeste.vality = vality;
	}

	public void addjPanel6(JLabel jlabel, GridBagConstraints gbc) {
		this.jPanel6.add(jlabel, gbc);
	}

	public void addjPanel8(JLabel jlabel, GridBagConstraints gbc) {
		this.jPanel8.add(jlabel, gbc);
	}

	public void setValidateHigh(ArrayList<Boolean> validateHigh) {
		InterfaceTeste.validateHigh = validateHigh;
	}

	public void setValidateMedium(ArrayList<Boolean> validateMedium) {
		InterfaceTeste.validateMedium = validateMedium;
	}

	public void setCounter(int counter) {
		this.counter = counter;
	}

	public void setIcon75(ArrayList<ImageIcon> icon75) {
		InterfaceTeste.icon75 = icon75;
	}

	public void setIcon25(ArrayList<ImageIcon> icon25) {
		this.icon25 = icon25;
	}

	public void setIconSlider(ArrayList<ImageIcon> iconSlider) {
		this.iconSlider = iconSlider;
	}

	public void setIconjLabel4(ImageIcon jLabel4) {
		this.jLabel4.setIcon(jLabel4);
	}

	public void setIconjLabel5(ImageIcon jLabel4) {
		this.jLabel5.setIcon(jLabel4);
	}

	public void setIconjLabel6(ImageIcon jLabel4) {
		this.jLabel6.setIcon(jLabel4);
	}

	public void setIconjLabel7(ImageIcon jLabel4) {
		this.jLabel7.setIcon(jLabel4);
	}

	public void setIconjLabel8(ImageIcon jLabel4) {
		this.jLabel8.setIcon(jLabel4);
	}

	public void setIconjLabel9(ImageIcon jLabel4) {
		this.jLabel9.setIcon(jLabel4);
	}

	public void setIconjLabel10(ImageIcon jLabel4) {
		this.jLabel10.setIcon(jLabel4);
	}

	public void setIconjLabel11(ImageIcon jLabel4) {
		this.jLabel11.setIcon(jLabel4);
	}

	public void setIconjLabel12(ImageIcon jLabel4) {
		this.jLabel12.setIcon(jLabel4);
	}

	public void setIconjLabel13(ImageIcon jLabel4) {
		this.jLabel13.setIcon(jLabel4);
	}

	public void setIconjLabel14(ImageIcon jLabel4) {
		this.jLabel14.setIcon(jLabel4);
	}

	public void setIconjLabel15(ImageIcon jLabel4) {
		this.jLabel15.setIcon(jLabel4);
	}

	public void setIconjLabel16(ImageIcon jLabel4) {
		this.jLabel16.setIcon(jLabel4);
	}

	public void setIconjLabel17(ImageIcon jLabel4) {
		this.jLabel17.setIcon(jLabel4);
	}

	public void setIconjLabel18(ImageIcon jLabel4) {
		this.jLabel18.setIcon(jLabel4);
	}

	public void setIconjLabel19(ImageIcon jLabel4) {
		this.jLabel19.setIcon(jLabel4);
	}

	public void setIconjLabel20(ImageIcon jLabel4) {
		this.jLabel20.setIcon(jLabel4);
	}

	public void setIconjLabel72(ImageIcon jLabel4) {
		this.jLabel72.setIcon(jLabel4);
	}

	public void setIconjLabel73(ImageIcon jLabel4) {
		this.jLabel73.setIcon(jLabel4);
	}

	public void setIconjLabel74(ImageIcon jLabel4) {
		this.jLabel74.setIcon(jLabel4);
	}

	public void setIconjLabel75(ImageIcon jLabel4) {
		this.jLabel75.setIcon(jLabel4);
	}

}
